package com.hqd.ch03.v42.web.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 主题处理器
 */
public interface ThemeResolver {
    /**
     * 获取主题资源名称
     *
     * @param request
     * @return
     */
    String resolveThemeName(HttpServletRequest request);

    /**
     * 设置主题名称
     *
     * @param request
     * @param response
     * @param themeName
     */
    void setThemeName(HttpServletRequest request, HttpServletResponse response, String themeName);
}
